<?php get_header();?>
<!--主要内容 -->
<div id="cont-list">
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-8 col-lg-8 cont-left">
<!--文章列表 -->
		<?php if (function_exists('get_breadcrumbs')) get_breadcrumbs(); ?>
           <?php if ( !have_posts() ) : ?> 
				<?php _e('没有找到相关的内容'); ?>
			<?php else: ?>

			<?php while(have_posts()) : the_post(); ?>
            <?php
            $title = get_the_title();
            $content = mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 200,"……");
            $keys = explode(" ",$s);
            $title = preg_replace('/('.implode('|', $keys) .')/iu','<span style="color:#ff4360;background:#fff;">\0</span>',$title);
            $content = preg_replace('/('.implode('|', $keys) .')/iu','<span style="color:#ff4360;background:#fff;">\0</span>',$content);
            ?>
<div class="la-list02 line-botm clearfix">
	<div class="la-l-img">
		<a href="<?php the_permalink(); ?>" <?php if( ztmao('ztmao_post_target')) { echo 'target="_blank"';}?>>
			<?php if (ztmao('qiniu') == '1') { ?>    
			<?php wpjam_post_thumbnail(array(220,165),$crop=1);?>    
			<?php } else { } ?>    
			<?php if (ztmao('qiniu') == '0') { ?>    
			<img class="xyscale" src="<?php echo get_template_directory_uri(); ?>/timthumb.php?src=<?php echo post_thumbnail_src(); ?>&w=220&h=165&zc=1" alt="<?php the_title(); ?>"/> 
			<?php } else { } ?> 
		</a>
	</div>
	<div class="la-r-text">
		<h3>
			<?php   $custom_fields = get_post_custom_keys($post->ID);if (!in_array ('tag_value', $custom_fields)) : ?>
		    <?php else: ?>
		    <?php  $custom = get_post_custom($post->ID);	$custom_value = $custom['tag_value']; ?>
				<span class="hot-icon"><?php echo get_post_meta($post->ID,"tag_value",true);?></span>
			<?php endif; ?>
			<a href="<?php the_permalink(); ?>" class="htitle-color" <?php if( ztmao('ztmao_post_target')) { echo 'target="_blank"';}?>><?php echo $title; ?></a>
		</h3>
		<div class="mob-author">
			<span class="author-face"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ) ?>" <?php if( ztmao('ztmao_post_target')) { echo 'target="_blank"';}?>><?php echo get_avatar( get_the_author_meta('email'), '25' );?></a>
			</span>
			<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ) ?>" <?php if( ztmao('ztmao_post_target')) { echo 'target="_blank"';}?>>
			<span class="author-name "><?php echo get_the_author() ?></span>
			</a>
			<span class="time fenlei"><i class="iconfont icon-mulutubiao"></i>
			<?php the_category(', ') ?>
			</span>
			<span class="time"><i class="iconfont icon-shijian"></i> <?php echo timeago( get_gmt_from_date(get_the_time('Y-m-d G:i:s')) ); ?></span>
			<?php if (ztmao('list-liulan') != '') { ?>
			<span class="time liulan"><i class="iconfont icon-faxian"></i> <?php post_views('',''); ?></span>
			<?php } ?>
			<?php if (ztmao('list-comment') != '') { ?>
			<span class="time pinglun"><i class="iconfont icon-pinglun"></i> <?php echo get_post($post->ID)->comment_count; ?></span>
			<?php } ?>
		</div>
		<div class="mob-sub">
			<?php echo $content; ?>
		</div>
		<?php if (ztmao('list-tag') != '') { ?>
		<div class="tags">
		<?php the_tags('<i class="iconfont icon-biaoqian"></i>', '', ''); ?>
		</div>
		<?php } ?>
	</div>
</div>
			<?php endwhile; endif ;?>
			<?php wp_reset_query(); ?>
<div class="get-mod-more js-get-mod-more-list transition" id="ias_trigger_1491535138273" style="display: inline-block;">
	 		<?php {
			next_posts_link('点击加载更多','');
			}?>	
</div>
</div>
<?php get_sidebar();?>
</div>
</div>
</div>
<!--底部 -->
<?php get_footer();?>